package com.etc.controller;

import com.etc.pojo.FirstType;
import com.etc.service.FirstTypeOfService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("/FirstTypeOfVideoController")
@Controller
public class FirstTypeOfVideoController {

    Logger logger= Logger.getLogger(FirstTypeOfVideoController.class);

    @Autowired
    FirstTypeOfService service;

    @RequestMapping("/showAllFirstType")
    @ResponseBody
    private List<FirstType> showAllFirstType() {

        List<FirstType> list = service.showAllFirstType();
        return list;

    }

}
